package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CRiskassessmentDao;
import gov.ccswj.modules.ccbusiness.entity.CRiskassessmentEntity;
import gov.ccswj.modules.ccbusiness.service.CRiskassessmentService;



@Service("cRiskassessmentService")
public class CRiskassessmentServiceImpl implements CRiskassessmentService {
	@Autowired
	private CRiskassessmentDao cRiskassessmentDao;
	
	@Override
	public CRiskassessmentEntity queryObject(Integer id){
		return cRiskassessmentDao.queryObject(id);
	}
	
	@Override
	public List<CRiskassessmentEntity> queryList(Map<String, Object> map){
		return cRiskassessmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cRiskassessmentDao.queryTotal(map);
	}
	
	@Override
	public void save(CRiskassessmentEntity cRiskassessment){
		cRiskassessmentDao.save(cRiskassessment);
	}
	
	@Override
	public void update(CRiskassessmentEntity cRiskassessment){
		cRiskassessmentDao.update(cRiskassessment);
	}
	
	@Override
	public void delete(Integer id){
		cRiskassessmentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cRiskassessmentDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cRiskassessmentDao.delete(entname);
		
	}
}
